<?php
Class URLBuilder
{
	public static $root ="/";
	public static $has_index = true;
	
	public static function resource_url($path)
	{
		return self::$root . 'public/' . $path;
	}
	
	public static function action_url($action)
	{
		$index = "";
		if (self::$has_index)
			$index = "index.php/";
			
		return self::$root.$index.$action;
	}
}
?>